package com.hd.vue2204.fm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author hd
 * @since 2023-04-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 优惠券ID
     */
    private String id;

    /**
     * 金额
     */
    private Integer amount;

    /**
     * 使用范围，类型
     */
    private String type;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 截止有效期
     */
    private LocalDateTime limitTime;

    /**
     * 是否被领取
     */
    private Integer status;

    /**
     * 批次号
     */
    private String batchNumber;


}
